#
# Be sure to run `pod lib lint HKLibCommon.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'HKLibCommon'
  s.version          = '0.1.0'
  s.summary          = 'A short description of HKLibCommon.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://github.com/HJT916109796/HKLibCommon'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'HJT916109796' => 'hujintao@yunniao.me' }
  s.source           = { :git => 'https://github.com/HJT916109796/HKLibCommon.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '10.0'

  s.source_files = 'HKLibCommon/Classes/*'
  
  s.subspec 'Categorys' do |ss|
      ss.source_files = 'HKLibCommon/Classes/Categorys/*.{h,m}'
      ss.subspec 'Controller' do |sss|
        sss.source_files = 'HKLibCommon/Classes/Categorys/Controller/*.{h,m}'
      end
      
      ss.subspec 'Data' do |sss|
        sss.source_files = 'HKLibCommon/Classes/Categorys/Data/*.{h,m}'
      end
      
      ss.subspec 'NSString' do |sss|
        sss.source_files = 'HKLibCommon/Classes/Categorys/NSString/*.{h,m}'
      end
      
      ss.subspec 'UI' do |sss|
        sss.source_files = 'HKLibCommon/Classes/Categorys/UI/*.{h,m}'
      end
      
      ss.subspec 'UIView' do |sss|
        sss.source_files = 'HKLibCommon/Classes/Categorys/UIView/*.{h,m}'
      end
      
      ss.subspec 'CALayer' do |sss|
        sss.source_files = 'HKLibCommon/Classes/Categorys/CALayer/*.{h,m}'
      end
      
      ss.subspec 'MutableAttributedString' do |sss|
        sss.source_files = 'HKLibCommon/Classes/Categorys/MutableAttributedString/*.{h,m}'
      end
      
  end

  s.subspec 'Config' do |ss|
    ss.source_files = 'HKLibCommon/Classes/Config/*.{h,m}'
  end
  
  s.subspec 'Macro' do |ss|
    ss.source_files = 'HKLibCommon/Classes/Macro/*.{h,m}'
  end
  
  s.subspec 'LogService' do |ss|
    ss.source_files = 'HKLibCommon/Classes/LogService/*.{h,m}'
  end
  
  s.subspec 'Tools' do |ss|
    ss.source_files = 'HKLibCommon/Classes/Tools/*.{h,m}'
    ss.subspec 'Scale' do |sss|
      sss.source_files = 'HKLibCommon/Classes/Tools/Scale/*.{h,m}'
    end
    ss.subspec 'Tool' do |sss|
      sss.source_files = 'HKLibCommon/Classes/Tools/Tool/*.{h,m}'
    end
    ss.subspec 'Data' do |sss|
      sss.source_files = 'HKLibCommon/Classes/Tools/Data/*.{h,m}'
    end
    ss.subspec 'FileManager' do |sss|
      sss.source_files = 'HKLibCommon/Classes/Tools/FileManager/*.{h,m}'
    end
    ss.subspec 'IrregularBtn' do |sss|
      sss.source_files = 'HKLibCommon/Classes/Tools/IrregularBtn/*.{h,m}'
    end
  end
  
  s.subspec 'UUID' do |ss|
    ss.source_files = 'HKLibCommon/Classes/UUID/*.{h,m}'
  end
  
  s.subspec 'CommonBundle' do |ss|
    ss.source_files = 'HKLibCommon/Classes/CommonBundle/**/**/*.{h,m}'
  end
  
  s.resource_bundles = {
   'HKLibCommon' => ['HKLibCommon/**/*.{xib,json,html,jpg,gif,png,xcassets,plist,bundle,geojson}']
  }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
